import os
import cv2
import numpy as np

city = "渝"
img = cv2.imdecode(np.fromfile(f"./img/panels/city/140_{city}.jpg", dtype=np.uint8), 1)   # 可读取中文路径图片
cv2.imshow("code", img)   # 展示图片时窗口名称
cv2.waitKey(0)